import request from '@/config/axios'



// 甲方单位 API
export const firstPartyApi = {
  // 查询甲方单位分页
  getfirstPartyPage: async (params: any) => {
    return await request.get({ url: `/qis/first-party/page`, params })
  },

  // 查询甲方单位详情
  getfirstParty: async (id: number) => {
    return await request.get({ url: `/qis/first-party/get?id=` + id })
  },

  // 新增甲方单位
  createfirstParty: async (data) => {
    return await request.post({ url: `/qis/first-party/create`, data })
  },

  // 修改甲方单位
  updatefirstParty: async (data) => {
    return await request.put({ url: `/qis/first-party/update`, data })
  },

  // 删除甲方单位
  deletefirstParty: async (ids) => {
    return await request.delete({ url: `/qis/first-party/delete?ids=`+ids })
  },

  // 导出甲方单位 Excel
  exportfirstParty: async (params) => {
    return await request.download({ url: `/qis/first-party/export-excel`, params })
  },



}
